Option Strict On
Option Explicit On 

Public Class UCommand
    Inherits System.Windows.Forms.UserControl

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents lblCommandText As System.Windows.Forms.Label
    Friend WithEvents cboCommandType As System.Windows.Forms.ComboBox
    Friend WithEvents lblCommandType As System.Windows.Forms.Label
    Friend WithEvents lblCommandTimeout As System.Windows.Forms.Label
    Friend WithEvents txtCommandText As System.Windows.Forms.TextBox
    Friend WithEvents nudCommandTimeout As System.Windows.Forms.NumericUpDown
    Friend WithEvents cboUpdatedRowSource As System.Windows.Forms.ComboBox
    Friend WithEvents lblUpdatedRowSource As System.Windows.Forms.Label
    Friend WithEvents cboConnection As System.Windows.Forms.ComboBox
    Friend WithEvents lblConnection As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(UCommand))
        Me.lblCommandText = New System.Windows.Forms.Label
        Me.cboConnection = New System.Windows.Forms.ComboBox
        Me.cboUpdatedRowSource = New System.Windows.Forms.ComboBox
        Me.lblUpdatedRowSource = New System.Windows.Forms.Label
        Me.lblConnection = New System.Windows.Forms.Label
        Me.cboCommandType = New System.Windows.Forms.ComboBox
        Me.nudCommandTimeout = New System.Windows.Forms.NumericUpDown
        Me.lblCommandType = New System.Windows.Forms.Label
        Me.lblCommandTimeout = New System.Windows.Forms.Label
        Me.txtCommandText = New System.Windows.Forms.TextBox
        CType(Me.nudCommandTimeout, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'lblCommandText
        '
        Me.lblCommandText.AccessibleDescription = resources.GetString("lblCommandText.AccessibleDescription")
        Me.lblCommandText.AccessibleName = resources.GetString("lblCommandText.AccessibleName")
        Me.lblCommandText.Anchor = CType(resources.GetObject("lblCommandText.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblCommandText.AutoSize = CType(resources.GetObject("lblCommandText.AutoSize"), Boolean)
        Me.lblCommandText.Dock = CType(resources.GetObject("lblCommandText.Dock"), System.Windows.Forms.DockStyle)
        Me.lblCommandText.Enabled = CType(resources.GetObject("lblCommandText.Enabled"), Boolean)
        Me.lblCommandText.Font = CType(resources.GetObject("lblCommandText.Font"), System.Drawing.Font)
        Me.lblCommandText.Image = CType(resources.GetObject("lblCommandText.Image"), System.Drawing.Image)
        Me.lblCommandText.ImageAlign = CType(resources.GetObject("lblCommandText.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblCommandText.ImageIndex = CType(resources.GetObject("lblCommandText.ImageIndex"), Integer)
        Me.lblCommandText.ImeMode = CType(resources.GetObject("lblCommandText.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblCommandText.Location = CType(resources.GetObject("lblCommandText.Location"), System.Drawing.Point)
        Me.lblCommandText.Name = "lblCommandText"
        Me.lblCommandText.RightToLeft = CType(resources.GetObject("lblCommandText.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblCommandText.Size = CType(resources.GetObject("lblCommandText.Size"), System.Drawing.Size)
        Me.lblCommandText.TabIndex = CType(resources.GetObject("lblCommandText.TabIndex"), Integer)
        Me.lblCommandText.Text = resources.GetString("lblCommandText.Text")
        Me.lblCommandText.TextAlign = CType(resources.GetObject("lblCommandText.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblCommandText.Visible = CType(resources.GetObject("lblCommandText.Visible"), Boolean)
        '
        'cboConnection
        '
        Me.cboConnection.AccessibleDescription = resources.GetString("cboConnection.AccessibleDescription")
        Me.cboConnection.AccessibleName = resources.GetString("cboConnection.AccessibleName")
        Me.cboConnection.Anchor = CType(resources.GetObject("cboConnection.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboConnection.BackgroundImage = CType(resources.GetObject("cboConnection.BackgroundImage"), System.Drawing.Image)
        Me.cboConnection.Dock = CType(resources.GetObject("cboConnection.Dock"), System.Windows.Forms.DockStyle)
        Me.cboConnection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboConnection.Enabled = CType(resources.GetObject("cboConnection.Enabled"), Boolean)
        Me.cboConnection.Font = CType(resources.GetObject("cboConnection.Font"), System.Drawing.Font)
        Me.cboConnection.ImeMode = CType(resources.GetObject("cboConnection.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboConnection.IntegralHeight = CType(resources.GetObject("cboConnection.IntegralHeight"), Boolean)
        Me.cboConnection.ItemHeight = CType(resources.GetObject("cboConnection.ItemHeight"), Integer)
        Me.cboConnection.Location = CType(resources.GetObject("cboConnection.Location"), System.Drawing.Point)
        Me.cboConnection.MaxDropDownItems = CType(resources.GetObject("cboConnection.MaxDropDownItems"), Integer)
        Me.cboConnection.MaxLength = CType(resources.GetObject("cboConnection.MaxLength"), Integer)
        Me.cboConnection.Name = "cboConnection"
        Me.cboConnection.RightToLeft = CType(resources.GetObject("cboConnection.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboConnection.Size = CType(resources.GetObject("cboConnection.Size"), System.Drawing.Size)
        Me.cboConnection.TabIndex = CType(resources.GetObject("cboConnection.TabIndex"), Integer)
        Me.cboConnection.Text = resources.GetString("cboConnection.Text")
        Me.cboConnection.Visible = CType(resources.GetObject("cboConnection.Visible"), Boolean)
        '
        'cboUpdatedRowSource
        '
        Me.cboUpdatedRowSource.AccessibleDescription = resources.GetString("cboUpdatedRowSource.AccessibleDescription")
        Me.cboUpdatedRowSource.AccessibleName = resources.GetString("cboUpdatedRowSource.AccessibleName")
        Me.cboUpdatedRowSource.Anchor = CType(resources.GetObject("cboUpdatedRowSource.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboUpdatedRowSource.BackgroundImage = CType(resources.GetObject("cboUpdatedRowSource.BackgroundImage"), System.Drawing.Image)
        Me.cboUpdatedRowSource.Dock = CType(resources.GetObject("cboUpdatedRowSource.Dock"), System.Windows.Forms.DockStyle)
        Me.cboUpdatedRowSource.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboUpdatedRowSource.Enabled = CType(resources.GetObject("cboUpdatedRowSource.Enabled"), Boolean)
        Me.cboUpdatedRowSource.Font = CType(resources.GetObject("cboUpdatedRowSource.Font"), System.Drawing.Font)
        Me.cboUpdatedRowSource.ImeMode = CType(resources.GetObject("cboUpdatedRowSource.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboUpdatedRowSource.IntegralHeight = CType(resources.GetObject("cboUpdatedRowSource.IntegralHeight"), Boolean)
        Me.cboUpdatedRowSource.ItemHeight = CType(resources.GetObject("cboUpdatedRowSource.ItemHeight"), Integer)
        Me.cboUpdatedRowSource.Location = CType(resources.GetObject("cboUpdatedRowSource.Location"), System.Drawing.Point)
        Me.cboUpdatedRowSource.MaxDropDownItems = CType(resources.GetObject("cboUpdatedRowSource.MaxDropDownItems"), Integer)
        Me.cboUpdatedRowSource.MaxLength = CType(resources.GetObject("cboUpdatedRowSource.MaxLength"), Integer)
        Me.cboUpdatedRowSource.Name = "cboUpdatedRowSource"
        Me.cboUpdatedRowSource.RightToLeft = CType(resources.GetObject("cboUpdatedRowSource.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboUpdatedRowSource.Size = CType(resources.GetObject("cboUpdatedRowSource.Size"), System.Drawing.Size)
        Me.cboUpdatedRowSource.TabIndex = CType(resources.GetObject("cboUpdatedRowSource.TabIndex"), Integer)
        Me.cboUpdatedRowSource.Text = resources.GetString("cboUpdatedRowSource.Text")
        Me.cboUpdatedRowSource.Visible = CType(resources.GetObject("cboUpdatedRowSource.Visible"), Boolean)
        '
        'lblUpdatedRowSource
        '
        Me.lblUpdatedRowSource.AccessibleDescription = resources.GetString("lblUpdatedRowSource.AccessibleDescription")
        Me.lblUpdatedRowSource.AccessibleName = resources.GetString("lblUpdatedRowSource.AccessibleName")
        Me.lblUpdatedRowSource.Anchor = CType(resources.GetObject("lblUpdatedRowSource.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblUpdatedRowSource.AutoSize = CType(resources.GetObject("lblUpdatedRowSource.AutoSize"), Boolean)
        Me.lblUpdatedRowSource.Dock = CType(resources.GetObject("lblUpdatedRowSource.Dock"), System.Windows.Forms.DockStyle)
        Me.lblUpdatedRowSource.Enabled = CType(resources.GetObject("lblUpdatedRowSource.Enabled"), Boolean)
        Me.lblUpdatedRowSource.Font = CType(resources.GetObject("lblUpdatedRowSource.Font"), System.Drawing.Font)
        Me.lblUpdatedRowSource.Image = CType(resources.GetObject("lblUpdatedRowSource.Image"), System.Drawing.Image)
        Me.lblUpdatedRowSource.ImageAlign = CType(resources.GetObject("lblUpdatedRowSource.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblUpdatedRowSource.ImageIndex = CType(resources.GetObject("lblUpdatedRowSource.ImageIndex"), Integer)
        Me.lblUpdatedRowSource.ImeMode = CType(resources.GetObject("lblUpdatedRowSource.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblUpdatedRowSource.Location = CType(resources.GetObject("lblUpdatedRowSource.Location"), System.Drawing.Point)
        Me.lblUpdatedRowSource.Name = "lblUpdatedRowSource"
        Me.lblUpdatedRowSource.RightToLeft = CType(resources.GetObject("lblUpdatedRowSource.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblUpdatedRowSource.Size = CType(resources.GetObject("lblUpdatedRowSource.Size"), System.Drawing.Size)
        Me.lblUpdatedRowSource.TabIndex = CType(resources.GetObject("lblUpdatedRowSource.TabIndex"), Integer)
        Me.lblUpdatedRowSource.Text = resources.GetString("lblUpdatedRowSource.Text")
        Me.lblUpdatedRowSource.TextAlign = CType(resources.GetObject("lblUpdatedRowSource.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblUpdatedRowSource.Visible = CType(resources.GetObject("lblUpdatedRowSource.Visible"), Boolean)
        '
        'lblConnection
        '
        Me.lblConnection.AccessibleDescription = resources.GetString("lblConnection.AccessibleDescription")
        Me.lblConnection.AccessibleName = resources.GetString("lblConnection.AccessibleName")
        Me.lblConnection.Anchor = CType(resources.GetObject("lblConnection.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblConnection.AutoSize = CType(resources.GetObject("lblConnection.AutoSize"), Boolean)
        Me.lblConnection.Dock = CType(resources.GetObject("lblConnection.Dock"), System.Windows.Forms.DockStyle)
        Me.lblConnection.Enabled = CType(resources.GetObject("lblConnection.Enabled"), Boolean)
        Me.lblConnection.Font = CType(resources.GetObject("lblConnection.Font"), System.Drawing.Font)
        Me.lblConnection.Image = CType(resources.GetObject("lblConnection.Image"), System.Drawing.Image)
        Me.lblConnection.ImageAlign = CType(resources.GetObject("lblConnection.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblConnection.ImageIndex = CType(resources.GetObject("lblConnection.ImageIndex"), Integer)
        Me.lblConnection.ImeMode = CType(resources.GetObject("lblConnection.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblConnection.Location = CType(resources.GetObject("lblConnection.Location"), System.Drawing.Point)
        Me.lblConnection.Name = "lblConnection"
        Me.lblConnection.RightToLeft = CType(resources.GetObject("lblConnection.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblConnection.Size = CType(resources.GetObject("lblConnection.Size"), System.Drawing.Size)
        Me.lblConnection.TabIndex = CType(resources.GetObject("lblConnection.TabIndex"), Integer)
        Me.lblConnection.Text = resources.GetString("lblConnection.Text")
        Me.lblConnection.TextAlign = CType(resources.GetObject("lblConnection.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblConnection.Visible = CType(resources.GetObject("lblConnection.Visible"), Boolean)
        '
        'cboCommandType
        '
        Me.cboCommandType.AccessibleDescription = resources.GetString("cboCommandType.AccessibleDescription")
        Me.cboCommandType.AccessibleName = resources.GetString("cboCommandType.AccessibleName")
        Me.cboCommandType.Anchor = CType(resources.GetObject("cboCommandType.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboCommandType.BackgroundImage = CType(resources.GetObject("cboCommandType.BackgroundImage"), System.Drawing.Image)
        Me.cboCommandType.Dock = CType(resources.GetObject("cboCommandType.Dock"), System.Windows.Forms.DockStyle)
        Me.cboCommandType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboCommandType.Enabled = CType(resources.GetObject("cboCommandType.Enabled"), Boolean)
        Me.cboCommandType.Font = CType(resources.GetObject("cboCommandType.Font"), System.Drawing.Font)
        Me.cboCommandType.ImeMode = CType(resources.GetObject("cboCommandType.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboCommandType.IntegralHeight = CType(resources.GetObject("cboCommandType.IntegralHeight"), Boolean)
        Me.cboCommandType.ItemHeight = CType(resources.GetObject("cboCommandType.ItemHeight"), Integer)
        Me.cboCommandType.Location = CType(resources.GetObject("cboCommandType.Location"), System.Drawing.Point)
        Me.cboCommandType.MaxDropDownItems = CType(resources.GetObject("cboCommandType.MaxDropDownItems"), Integer)
        Me.cboCommandType.MaxLength = CType(resources.GetObject("cboCommandType.MaxLength"), Integer)
        Me.cboCommandType.Name = "cboCommandType"
        Me.cboCommandType.RightToLeft = CType(resources.GetObject("cboCommandType.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboCommandType.Size = CType(resources.GetObject("cboCommandType.Size"), System.Drawing.Size)
        Me.cboCommandType.TabIndex = CType(resources.GetObject("cboCommandType.TabIndex"), Integer)
        Me.cboCommandType.Text = resources.GetString("cboCommandType.Text")
        Me.cboCommandType.Visible = CType(resources.GetObject("cboCommandType.Visible"), Boolean)
        '
        'nudCommandTimeout
        '
        Me.nudCommandTimeout.AccessibleDescription = resources.GetString("nudCommandTimeout.AccessibleDescription")
        Me.nudCommandTimeout.AccessibleName = resources.GetString("nudCommandTimeout.AccessibleName")
        Me.nudCommandTimeout.Anchor = CType(resources.GetObject("nudCommandTimeout.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.nudCommandTimeout.Dock = CType(resources.GetObject("nudCommandTimeout.Dock"), System.Windows.Forms.DockStyle)
        Me.nudCommandTimeout.Enabled = CType(resources.GetObject("nudCommandTimeout.Enabled"), Boolean)
        Me.nudCommandTimeout.Font = CType(resources.GetObject("nudCommandTimeout.Font"), System.Drawing.Font)
        Me.nudCommandTimeout.ImeMode = CType(resources.GetObject("nudCommandTimeout.ImeMode"), System.Windows.Forms.ImeMode)
        Me.nudCommandTimeout.Location = CType(resources.GetObject("nudCommandTimeout.Location"), System.Drawing.Point)
        Me.nudCommandTimeout.Maximum = New Decimal(New Integer() {10000, 0, 0, 0})
        Me.nudCommandTimeout.Name = "nudCommandTimeout"
        Me.nudCommandTimeout.RightToLeft = CType(resources.GetObject("nudCommandTimeout.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.nudCommandTimeout.Size = CType(resources.GetObject("nudCommandTimeout.Size"), System.Drawing.Size)
        Me.nudCommandTimeout.TabIndex = CType(resources.GetObject("nudCommandTimeout.TabIndex"), Integer)
        Me.nudCommandTimeout.TextAlign = CType(resources.GetObject("nudCommandTimeout.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.nudCommandTimeout.ThousandsSeparator = CType(resources.GetObject("nudCommandTimeout.ThousandsSeparator"), Boolean)
        Me.nudCommandTimeout.UpDownAlign = CType(resources.GetObject("nudCommandTimeout.UpDownAlign"), System.Windows.Forms.LeftRightAlignment)
        Me.nudCommandTimeout.Visible = CType(resources.GetObject("nudCommandTimeout.Visible"), Boolean)
        '
        'lblCommandType
        '
        Me.lblCommandType.AccessibleDescription = resources.GetString("lblCommandType.AccessibleDescription")
        Me.lblCommandType.AccessibleName = resources.GetString("lblCommandType.AccessibleName")
        Me.lblCommandType.Anchor = CType(resources.GetObject("lblCommandType.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblCommandType.AutoSize = CType(resources.GetObject("lblCommandType.AutoSize"), Boolean)
        Me.lblCommandType.Dock = CType(resources.GetObject("lblCommandType.Dock"), System.Windows.Forms.DockStyle)
        Me.lblCommandType.Enabled = CType(resources.GetObject("lblCommandType.Enabled"), Boolean)
        Me.lblCommandType.Font = CType(resources.GetObject("lblCommandType.Font"), System.Drawing.Font)
        Me.lblCommandType.Image = CType(resources.GetObject("lblCommandType.Image"), System.Drawing.Image)
        Me.lblCommandType.ImageAlign = CType(resources.GetObject("lblCommandType.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblCommandType.ImageIndex = CType(resources.GetObject("lblCommandType.ImageIndex"), Integer)
        Me.lblCommandType.ImeMode = CType(resources.GetObject("lblCommandType.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblCommandType.Location = CType(resources.GetObject("lblCommandType.Location"), System.Drawing.Point)
        Me.lblCommandType.Name = "lblCommandType"
        Me.lblCommandType.RightToLeft = CType(resources.GetObject("lblCommandType.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblCommandType.Size = CType(resources.GetObject("lblCommandType.Size"), System.Drawing.Size)
        Me.lblCommandType.TabIndex = CType(resources.GetObject("lblCommandType.TabIndex"), Integer)
        Me.lblCommandType.Text = resources.GetString("lblCommandType.Text")
        Me.lblCommandType.TextAlign = CType(resources.GetObject("lblCommandType.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblCommandType.Visible = CType(resources.GetObject("lblCommandType.Visible"), Boolean)
        '
        'lblCommandTimeout
        '
        Me.lblCommandTimeout.AccessibleDescription = resources.GetString("lblCommandTimeout.AccessibleDescription")
        Me.lblCommandTimeout.AccessibleName = resources.GetString("lblCommandTimeout.AccessibleName")
        Me.lblCommandTimeout.Anchor = CType(resources.GetObject("lblCommandTimeout.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblCommandTimeout.AutoSize = CType(resources.GetObject("lblCommandTimeout.AutoSize"), Boolean)
        Me.lblCommandTimeout.Dock = CType(resources.GetObject("lblCommandTimeout.Dock"), System.Windows.Forms.DockStyle)
        Me.lblCommandTimeout.Enabled = CType(resources.GetObject("lblCommandTimeout.Enabled"), Boolean)
        Me.lblCommandTimeout.Font = CType(resources.GetObject("lblCommandTimeout.Font"), System.Drawing.Font)
        Me.lblCommandTimeout.Image = CType(resources.GetObject("lblCommandTimeout.Image"), System.Drawing.Image)
        Me.lblCommandTimeout.ImageAlign = CType(resources.GetObject("lblCommandTimeout.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblCommandTimeout.ImageIndex = CType(resources.GetObject("lblCommandTimeout.ImageIndex"), Integer)
        Me.lblCommandTimeout.ImeMode = CType(resources.GetObject("lblCommandTimeout.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblCommandTimeout.Location = CType(resources.GetObject("lblCommandTimeout.Location"), System.Drawing.Point)
        Me.lblCommandTimeout.Name = "lblCommandTimeout"
        Me.lblCommandTimeout.RightToLeft = CType(resources.GetObject("lblCommandTimeout.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblCommandTimeout.Size = CType(resources.GetObject("lblCommandTimeout.Size"), System.Drawing.Size)
        Me.lblCommandTimeout.TabIndex = CType(resources.GetObject("lblCommandTimeout.TabIndex"), Integer)
        Me.lblCommandTimeout.Text = resources.GetString("lblCommandTimeout.Text")
        Me.lblCommandTimeout.TextAlign = CType(resources.GetObject("lblCommandTimeout.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblCommandTimeout.Visible = CType(resources.GetObject("lblCommandTimeout.Visible"), Boolean)
        '
        'txtCommandText
        '
        Me.txtCommandText.AccessibleDescription = resources.GetString("txtCommandText.AccessibleDescription")
        Me.txtCommandText.AccessibleName = resources.GetString("txtCommandText.AccessibleName")
        Me.txtCommandText.Anchor = CType(resources.GetObject("txtCommandText.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.txtCommandText.AutoSize = CType(resources.GetObject("txtCommandText.AutoSize"), Boolean)
        Me.txtCommandText.BackgroundImage = CType(resources.GetObject("txtCommandText.BackgroundImage"), System.Drawing.Image)
        Me.txtCommandText.Dock = CType(resources.GetObject("txtCommandText.Dock"), System.Windows.Forms.DockStyle)
        Me.txtCommandText.Enabled = CType(resources.GetObject("txtCommandText.Enabled"), Boolean)
        Me.txtCommandText.Font = CType(resources.GetObject("txtCommandText.Font"), System.Drawing.Font)
        Me.txtCommandText.ImeMode = CType(resources.GetObject("txtCommandText.ImeMode"), System.Windows.Forms.ImeMode)
        Me.txtCommandText.Location = CType(resources.GetObject("txtCommandText.Location"), System.Drawing.Point)
        Me.txtCommandText.MaxLength = CType(resources.GetObject("txtCommandText.MaxLength"), Integer)
        Me.txtCommandText.Multiline = CType(resources.GetObject("txtCommandText.Multiline"), Boolean)
        Me.txtCommandText.Name = "txtCommandText"
        Me.txtCommandText.PasswordChar = CType(resources.GetObject("txtCommandText.PasswordChar"), Char)
        Me.txtCommandText.RightToLeft = CType(resources.GetObject("txtCommandText.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.txtCommandText.ScrollBars = CType(resources.GetObject("txtCommandText.ScrollBars"), System.Windows.Forms.ScrollBars)
        Me.txtCommandText.Size = CType(resources.GetObject("txtCommandText.Size"), System.Drawing.Size)
        Me.txtCommandText.TabIndex = CType(resources.GetObject("txtCommandText.TabIndex"), Integer)
        Me.txtCommandText.Text = resources.GetString("txtCommandText.Text")
        Me.txtCommandText.TextAlign = CType(resources.GetObject("txtCommandText.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.txtCommandText.Visible = CType(resources.GetObject("txtCommandText.Visible"), Boolean)
        Me.txtCommandText.WordWrap = CType(resources.GetObject("txtCommandText.WordWrap"), Boolean)
        '
        'UCommand
        '
        Me.AccessibleDescription = resources.GetString("$this.AccessibleDescription")
        Me.AccessibleName = resources.GetString("$this.AccessibleName")
        Me.AutoScroll = CType(resources.GetObject("$this.AutoScroll"), Boolean)
        Me.AutoScrollMargin = CType(resources.GetObject("$this.AutoScrollMargin"), System.Drawing.Size)
        Me.AutoScrollMinSize = CType(resources.GetObject("$this.AutoScrollMinSize"), System.Drawing.Size)
        Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
        Me.Controls.Add(Me.lblCommandType)
        Me.Controls.Add(Me.lblCommandTimeout)
        Me.Controls.Add(Me.txtCommandText)
        Me.Controls.Add(Me.lblCommandText)
        Me.Controls.Add(Me.cboConnection)
        Me.Controls.Add(Me.cboUpdatedRowSource)
        Me.Controls.Add(Me.lblUpdatedRowSource)
        Me.Controls.Add(Me.lblConnection)
        Me.Controls.Add(Me.cboCommandType)
        Me.Controls.Add(Me.nudCommandTimeout)
        Me.Enabled = CType(resources.GetObject("$this.Enabled"), Boolean)
        Me.Font = CType(resources.GetObject("$this.Font"), System.Drawing.Font)
        Me.ImeMode = CType(resources.GetObject("$this.ImeMode"), System.Windows.Forms.ImeMode)
        Me.Location = CType(resources.GetObject("$this.Location"), System.Drawing.Point)
        Me.Name = "UCommand"
        Me.RightToLeft = CType(resources.GetObject("$this.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.Size = CType(resources.GetObject("$this.Size"), System.Drawing.Size)
        CType(Me.nudCommandTimeout, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Public Event ValueChanged As EventHandler

    Private Sub UCommand_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AddHandler txtCommandText.TextChanged, AddressOf OnValueChanged
        AddHandler cboCommandType.SelectionChangeCommitted, AddressOf OnValueChanged
        AddHandler nudCommandTimeout.ValueChanged, AddressOf OnValueChanged : AddHandler nudCommandTimeout.TextChanged, AddressOf OnValueChanged
        AddHandler cboUpdatedRowSource.SelectionChangeCommitted, AddressOf OnValueChanged
        AddHandler cboConnection.SelectionChangeCommitted, AddressOf OnValueChanged
    End Sub

    Protected Sub OnValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
        RaiseEvent ValueChanged(Me, New EventArgs)
    End Sub

    Public Sub Prepare(ByVal table As Model10.Table)
        cboCommandType.Items.Clear()
        cboCommandType.Items.Add(CommandType.Text)
        cboCommandType.Items.Add(CommandType.StoredProcedure)
        cboCommandType.Items.Add(CommandType.TableDirect)
        '-------------------
        cboUpdatedRowSource.Items.Clear()
        cboUpdatedRowSource.Items.Add(UpdateRowSource.None)
        cboUpdatedRowSource.Items.Add(UpdateRowSource.OutputParameters)
        cboUpdatedRowSource.Items.Add(UpdateRowSource.FirstReturnedRecord)
        cboUpdatedRowSource.Items.Add(UpdateRowSource.Both)
        '-------------------
        cboConnection.Items.Clear()

        Dim cnn As Model10.Connection
        For Each cnn In table.Presentation.Connections
            cboConnection.Items.Add(cnn)
        Next : cnn = Nothing
    End Sub

    Public Sub Read(ByVal command As Model10.Command)
        txtCommandText.Text = command.CommandText
        cboCommandType.SelectedItem = command.CommandType
        nudCommandTimeout.Value = command.CommandTimeout
        cboUpdatedRowSource.SelectedItem = command.UpdatedRowSource
        cboConnection.SelectedItem = command.Connection
    End Sub
    Public Sub Write(ByVal command As Model10.Command)
        command.CommandText = txtCommandText.Text
        command.CommandType = CType(cboCommandType.SelectedItem, CommandType)
        command.CommandTimeout = CInt(nudCommandTimeout.Value)
        command.UpdatedRowSource = CType(cboUpdatedRowSource.SelectedItem, UpdateRowSource)
        command.Connection = CType(cboConnection.SelectedItem, Model10.Connection)
    End Sub
End Class